package com.ruoyi.submit.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题目提交对象 t_question_submit
 * 
 * @author ruoyi
 * @date 2023-10-18
 */
public class TQuestionSubmit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 题目 id */
    @Excel(name = "题目 id")
    private Long questionId;

    /** 创建用户 id */
    @Excel(name = "创建用户 id")
    private Long userId;

    /** 判题信息（json 对象） */
    @Excel(name = "判题信息", readConverterExp = "j=son,对=象")
    private String judgeInfo;

    /** 编程语言 */
    @Excel(name = "编程语言")
    private String submitLanguage;

    /** 用户提交代码 */
    @Excel(name = "用户提交代码")
    private String submitCode;

    /** 判题状态（0 - 待判题、1 - 判题中、2 - 成功、3 - 失败） */
    @Excel(name = "判题状态", readConverterExp = "0=,-=,待=判题、1,-=,判=题中、2,-=,成=功、3,-=,失=败")
    private Long submitState;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setJudgeInfo(String judgeInfo) 
    {
        this.judgeInfo = judgeInfo;
    }

    public String getJudgeInfo() 
    {
        return judgeInfo;
    }
    public void setSubmitLanguage(String submitLanguage) 
    {
        this.submitLanguage = submitLanguage;
    }

    public String getSubmitLanguage() 
    {
        return submitLanguage;
    }
    public void setSubmitCode(String submitCode) 
    {
        this.submitCode = submitCode;
    }

    public String getSubmitCode() 
    {
        return submitCode;
    }
    public void setSubmitState(Long submitState) 
    {
        this.submitState = submitState;
    }

    public Long getSubmitState() 
    {
        return submitState;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getQuestionId())
            .append("userId", getUserId())
            .append("judgeInfo", getJudgeInfo())
            .append("submitLanguage", getSubmitLanguage())
            .append("submitCode", getSubmitCode())
            .append("submitState", getSubmitState())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
